package cn.itcast.job;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

import cn.itcast.service.HelloService;

public class HelloJob extends QuartzJobBean {

	@Autowired
	private HelloService helloService;

	@Override
	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
		helloService.sayHello();
	}

}
